﻿@model Forum.Web.Models.TopicDetailModel
@using Forum.Web.BaseCode
@using Frame.Lib.Web
@{
    ViewBag.Title = "Detail";
    Layout = "~/Views/Shared/Main.cshtml";
}
@section head
{
    @Html.Raw(ForumStyle.Detail)
    @Html.Raw(ForumStyle.Pager)
    @Html.Raw(ForumScript.XHEditor)

    <script type="text/javascript">
        $(function ()
        {
            $("#txtEditor").xheditor({ tools: 'Bold,Italic,FontColor,Img,Emot,Link', skin: 'default', width: 600, height: 200 });
            //alert($("#abcde"));
        });
    </script>
}
<div class="nav">
    <a href="#" class="img">
        <img src="@(ForumPath.Image + "pt_icn.png")" /></a><a href='@ForumPath.VirtualRoot' class="space">论坛</a><a
            href='@(ForumPath.VirtualRoot+"topic/list/"+ Model.TopicInfo.BoardID)' class="space">@Model.TopicInfo.BoardInfo.Name</a>
            <a href="#" class="space">
                @Model.TopicInfo.Name
            </a>
    <div class="but">
        <a href="#">搜索本版</a><input type="text" class="text" /><input type="button" class="button"
            value="搜索" /></div>
    <div class="clear">
    </div>
</div>
<div class="List_top">
    <div class="top">
        <div class="left">
            <a href="#">银光茶馆</a>今日: <span>51</span>|主题: <span>377</span></div>
        <div class="right">
            <a href="#" class="bb">收藏本版</a><a href="#" class="dy">订阅</a></div>
        <div class="clear">
        </div>
    </div>
    <div class="bot">
        版主: <a href="#">360shenshi,</a> <a href="#">jy03207715</a></div>
</div>
<div class="List_page">
    <div class="left">
        <input type="button" /></div>
   
    @Html.Raw(HtmlPager.Render(Model.Pager, Model.UrlPrefix, true))
     <div class="right">
        <a href='@(ForumPath.VirtualRoot + "topic/list/"+ Model.TopicInfo.BoardID)' class="spage">返回列表</a>
    </div>
</div>
<div class="Page_main">
    <div class="page_main_people">
        <table cellpadding="0" cellspacing="0" border="0" width="100%">
            <tr class="tfirst">
                <td class="tleft" style="vertical-align:middle;">
                    <div class="tleft_box">
                        查看: <span>@this.Model.TopicInfo.ViewCount</span>&nbsp;&nbsp;|&nbsp;&nbsp;回复:<span> @this.Model.TopicInfo.ReplyCount</span></div>
                </td>
                <td class="tright">
                    <div class="ttit">
                        <span class="left"><a href="#" class="aa">@if(this.Model.TopicInfo.TypeID!=0)
                                                                  {
                                                                      @("[" + this.Model.TopicInfo.TypeName + "]")
                                                                  }
                         @this.Model.TopicInfo.Name</a> <a href="#"
                            class="ab">[复制链接]</a></span> <span class="right">
                                <input type="text" /><a href="#" class="go"><img src="@(ForumPath.Image + "flbg.gif")" /></a>
                            </span>
                    </div>
                </td>
            </tr>
            @foreach(var info in this.Model.PostList)
            {
                <tr class="tline">
                    <td>
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td class="tleft">
                        <div class="tleft_box">
                            <div class="tpa">
                                <a href="#" class="aa">@info.MemberName</a></div>
                            <div class="tpb">
                                <a href="#">
                                    <img src="@(ForumPath.Image + "forum_new.gif")" /></a></div>
                            <div class="tpc">
                                <a href="#">@info.MemberInfo.GroupName</a></div>
                            <div class="star">
                                <a href="#">
                                    <img src="@(ForumPath.Image + "star_level1.gif")" /></a></div>
                            <div class="tpd">
                                
                                <a href="#" class="name">积分</a><a href="#" class="num">@info.MemberInfo.Score</a> <a href="#" class="name">
                                    精华</a><a href="#" class="num">@info.MemberInfo.EssencePostCount</a> <a href="#" class="name">帖子</a><a href="#" class="num">@info.MemberInfo.PostCount</a>
                            </div>
                        </div>
                    </td>
                    <td class="tright" valign="top">
                        <div class="tpa">
                            <span class="left"><a href="#">
                                <img src="@(ForumPath.Image + "online_admin.gif")" align="absmiddle" /></a>发表于 @info.InputTime.ToString("yyyy-M-d hh:mm")
                                 |<a href="#">只看该作者</a> @if(info.Floor == 1){@Html.Raw("|<a href='#'>倒序浏览 </a>")}</span><span
                                    class="right">@(info.Floor + "#")</span></div>
                        <div class="clear">
                        </div>
                        <p>
                           @info.Name
                        </p>
                    </td>
                </tr>
                <tr>
                    <td class="tleft">&nbsp;
                    </td>
                    <td class="tright">
                        <div class="tba">
                            <a href="#">返回顶部 </a><a href="#">举报</a></div>
                    </td>
                </tr>
            }
           
            <tr class="tline">
                <td>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td class="tleft">
                    <div class="tbb">
                        <<a href="#">上一主题</a>|<a href="#">下一主题</a>></div>
                </td>
                <td class="tright">
                </td>
            </tr>
        </table>
    </div>
    <div class="clear">
    </div>
</div>
<div class="clear">
</div>
<div class="List_page">
    <div class="left">
        <input type="button" /></div>
     @Html.Raw(HtmlPager.Render(Model.Pager, Model.UrlPrefix, true))
    <div class="right">
        <a href='@(ForumPath.VirtualRoot + "topic/list/"+ Model.TopicInfo.BoardID)' class="spage">返回列表</a>
    </div>
   

</div>
 <div>
    <form action='@(ForumPath.VirtualRoot + "Topic/ReplyPost")' method="post">
    <input id="Hidden1" type="hidden" name="TopicID" value='@this.Model.TopicInfo.ID' />
    <textarea id="txtEditor" name="txtEditor"  rows="20" cols="50"></textarea>
    <input id="Submit1" type="submit" value="submit" />
    </form>
</div>
<div class="clear">
</div>

